/**
    店铺小区 组件
**/
(function(vc){

    vc.extends({
        propTypes: {
           callBackListener:vc.propTypes.string, //父组件名称
           callBackFunction:vc.propTypes.string //父组件监听方法
        },
        data:{
            viewShopCommunityInfo:{
                index:0,
                flowComponent:'viewShopCommunityInfo',
                communityId:'',

            }
        },
        _initMethod:function(){
            //根据请求参数查询 查询 业主信息
            $that._loadShopCommunityInfoData();
        },
        _initEvent:function(){
            vc.on('viewShopCommunityInfo','chooseShopCommunity',function(_app){
                vc.copyObject(_app, $that.viewShopCommunityInfo);
                vc.emit($props.callBackListener,$props.callBackFunction,$that.viewShopCommunityInfo);
            });

            vc.on('viewShopCommunityInfo', 'onIndex', function(_index){
                $that.viewShopCommunityInfo.index = _index;
            });

        },
        methods:{

            _openSelectShopCommunityInfoModel(){
                vc.emit('chooseShopCommunity','openChooseShopCommunityModel',{});
            },
            _openAddShopCommunityInfoModel(){
                vc.emit('addShopCommunity','openAddShopCommunityModal',{});
            },
            _loadShopCommunityInfoData:function(){

            }
        }
    });

})(window.vc);
